import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import Login from '../views/Login.vue'
import Home from '../views/Home'
 import htmlViewSample from '../views/htmlViewSample'
 import HtmlPanel from '../views/HtmlPanel'
 import abc from '../views/abc'

//  import top from '../components/top.vue'
 import index from '../components/index.vue'
 import Adiscovery from '../components/Adiscovery.vue'
 import Bplaylists from '../components/Bplaylists.vue'
 import Csongs from '../components/Csongs.vue'
 import Dmv from '../components/Dmv.vue'
 import Eresult from '../components/Eresult.vue'
 import Gmvs from '../components/Gmvs.vue'
 import Fplaylists from '../components/Fplaylists.vue'
 
Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    { path: '/Home', name: 'Home', component: Home },
     { path: '/Login', name: 'Login', component: Login, 
    // children:[
    //   {
    //     name:"abc",
    //     path:"abc",
    //     component:abc
    //   },
    // ]
    
    },




    // { path: '*',  redirect: '/abc'},

  //音乐播放器路由
    // { path: '/top', name: 'top', component: top },
    { path: '/index', name: 'index', component: index ,
    children:[
      {
      name : 'Adiscovery',
      path :'/Adiscovery',
     component : Adiscovery
      },
      {
        name : 'Bplaylists',
        path :'/Bplaylists',
       component : Bplaylists
        },

        {
          name : 'Csongs',
          path :'/Csongs',
         component : Csongs
          },
          {
            name : 'Dmv',
            path :'/Dmv',
           component : Dmv
            },
            {
              name : 'Eresult',
              path :'/Eresult',
             component : Eresult
              },
              {
                name : 'Fplaylists',
                path :'/Fplaylists',
               component : Fplaylists
                },
                {
                  name : 'Gmvs',
                  path :'/Gmvs',
                 component : Gmvs
                  },
    ]
  },

    // { path: '/Adiscovery', name: 'Adiscovery', component: Adiscovery },
    // { path: '/Bplaylists', name: 'Bplaylists', component: Bplaylists },
    // { path: '/Csongs', name: 'Csongs', component: Csongs},
    // { path: '/Dmv', name: 'Dmv', component: Dmv },




    { path: '/abc', name: 'abc', component: abc },
     { path: '/htmlViewSample', name: 'htmlViewSample', component: htmlViewSample },
     { path: '/HtmlPanel', name: 'HtmlPanel', component: HtmlPanel },
     
     { path: '/', redirect:{ name: 'Login'} },
    
  ]
})
